﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLTV.DataTier
{
    class MDOCGIA
    {

        public IQueryable<DOCGIA> mThongTinDocGia(int maDG)
        {
            var DocGia = from dg in Global.getIns().getDb().DOCGIAs where dg.MaDG == maDG select dg;
            if (DocGia != null)
            {
                return DocGia;
            }
            return null;
        }

        public List<DOCGIA> mThongTinDocGia(string tenDG)
        {
            var DocGia = from dg in Global.getIns().getDb().DOCGIAs where dg.Ten==tenDG select dg;
            if (DocGia != null)
            {
                return DocGia.ToList();
            }
            return null;
        }

    }
}
